package com.example.webdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author XieShaoping
 */
@RestController
public class TestController extends ParentClass implements ParentInterface{

    @RequestMapping("test")
    Object test(String a, String b, String c) throws NullPointerException{
        try {
            System.out.println("seczone-rasp");
        } catch (Exception e) {
            throw e;
        }
        return "hello world！";
    }

    @RequestMapping("test1")
    Object test1(String a, int b, boolean c) {
        try {
            System.out.println("seczone-rasp");
        } catch (Exception e) {
            throw e;
        }
        return "hello world！";
    }

    @Override
    public Object test() {
        return "null";
    }
}
